<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Create Pages</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Le styles -->
    <link href="http://localhost:8000/static/bootstrap.css" rel="stylesheet">
    <style type="text/css">
      body {
        padding-top: 60px;
        padding-bottom: 40px;
      }
    </style>
    <link href="http://localhost:8000/static/bootstrap-responsive.css" rel="stylesheet">

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- Le fav and touch icons -->
    <link rel="shortcut icon" href="../assets/ico/favicon.ico">
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.js"></script>
<script>
  $(document).ready(function(){
    $("#createPage").validate();
  });
  </script>
	
  </head>

  <body>

    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
<ul class="nav">

          <a class="brand" href="/homePage/">Eventati</a>
          <li><a href ="/DashboardHome/">Home Page</a></li>      
          <li > <a href="/AboutUs/">About Us</a></li>
          <li><a href="/ViewInstructions/">Instructions</a></li>
          <li><a href  ="/Terms&Conditions/">  Terms & Conditions</a></li>
         <li><a href  ="/News/">  Latest News and Updates</a></li>
         <li><a href ="/Faqs/"> FAQS</a></li>
         <li><a href ="/Contactus/"> Contactus</a></li>
		<!-- Author: Amina Kadry This form is for logging the user out of his account -->
         <li><a href="/logout/" method="POST">Log out</a></li>
            </ul>
            </ul>
          </div><!--/.nav-collapse -->
        </div>
      </div>
    </div>


    <div class="container">
      <!--  Author : Inas Khodeir
this part enables the user to add the title and the description of the page he wants to use  -->
      <div class="hero-unit">
        <h2>Create Pages </h2> 
		<ul>
<<!--  Author : Sherine Nouh
   In the following part a form with a button for each unchosen component is created that calls the method addUnchosenComponent to add it-->


{% if not isLocation %}
 <form action="/addUnchosenComponents/"method="POST">
      {% csrf_token %}
      <input type = "submit" name="name" value = "Add location"/>
      {% endif %}
</form>
{% if not isMedia %}
 <form action="/addUnchosenComponents/"method="POST">
      {% csrf_token %}
      <input type = "submit" name="name" value = "Add Media"/>
      {% endif %}
 </form>     
{% if not isAgenda %}
 <form action="/addUnchosenComponents/"method="POST">
      {% csrf_token %}
      <input type = "submit" name="name" value = "Add Agenda"/>
      {% endif %}            
</form>
{% if not isSocialMarketing %}
 <form action="/addUnchosenComponents/"method="POST">
      {% csrf_token %}
      <input type = "submit" name="name" value = "Add Social Marketing"/>
      {% endif %}
 </form>     
{% if not isLiveStream %}
 <form action="/addUnchosenComponents/"method="POST">
      {% csrf_token %}
      <input type = "submit" name="name" value = "Add Live Stream"/>
      {% endif %} 
</form>
{% if not isPayment %}
 <form action="/addUnchosenComponents/"method="POST">
      {% csrf_token %}
      <input type = "submit" name="name" value = "Add Payment"/>
      {% endif %}
</form>



<form id= "createPage" action= "/addCMS/" method = "POST">
{% csrf_token %}
<p> {{Error}} </p>

<label for="title">Title:</label></br>
<input type= "text" id="title" name="title" class = "required"/> </br>
<label for="description">Description:</label></br>

<textarea type = "text" rows = "5" cols = "50" id = "description" size = "50" name = "description" class = "required"> </textarea>

<button type = "save" value = "save"> Save </button>
</form>

      </div>

      
      <hr>

      <footer>
		   <a href="/AboutUs/">About Us</a>
		<a href="/ViewInstructions/">Instructions</a>
		<a href  ="/Terms&Conditions/">  Terms & Conditions</a>
		<a href  ="/News/">  Latest News and Updates</a>
		<a href ="/Faqs/"> FAQS</a>
		<a href ="/Contactus/"> Contactus</a>
		<p class="pull-right"><a href="#">Back to top</a></p>

		        <p>&copy; Company 2012</p>      </footer>

    </div> <!-- /container -->

    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="../assets/js/jquery.js"></script>
    <script src="../assets/js/bootstrap-transition.js"></script>
    <script src="../assets/js/bootstrap-alert.js"></script>
    <script src="../assets/js/bootstrap-modal.js"></script>
    <script src="../assets/js/bootstrap-dropdown.js"></script>
    <script src="../assets/js/bootstrap-scrollspy.js"></script>
    <script src="../assets/js/bootstrap-tab.js"></script>
    <script src="../assets/js/bootstrap-tooltip.js"></script>
    <script src="../assets/js/bootstrap-popover.js"></script>
    <script src="../assets/js/bootstrap-button.js"></script>
    <script src="../assets/js/bootstrap-collapse.js"></script>
    <script src="../assets/js/bootstrap-carousel.js"></script>
    <script src="../assets/js/bootstrap-typeahead.js"></script>

  </body>
</html>
